using System;
using System.Collections.Generic;
using System.Text;
using OpenTK.Math;

namespace Dogfight2008.Common
{
  public static class Q
  {
    public static Vector3 v(double x, double y, double z)
    {
      return new Vector3((float)x, (float)y, (float)z);
    }

    public static Vector2 v(double x, double y)
    {
      return new Vector2((float)x, (float)y);
    }

    #region string

    public static string[] Lines(string text)
    {
      return text.Split(new string[] { "\n", "\r\n" }, StringSplitOptions.None);
    }

    public static string[] Words(string sentence)
    {
      return sentence.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
    }

    public static string[] Split(string str, params string[] splitters)
    {
      return str.Split(splitters, StringSplitOptions.None);
    } 

    #endregion
  }
}
